#include <my_header.h>

int main(int argc, char *argv[]){

    const char charset[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
    size_t charset_size = sizeof(charset) - 1;

    char salt[1024] = { 0 };
    srand(time(NULL));
    char buf[9] = { 0 };
    for(int i = 0; i < 8; i++){
        buf[i] = charset[rand()%charset_size];
    }
    sprintf(salt, "$6$%s$", buf);
    printf("%s\n", salt);
    return 0;
}

